<? include('layer/head.html'); ?>
<style type="text/css">
.anchor_oprate_container{min-height:500px;}
.anchor_oprate_left{border:1px solid #ccc;}
.anchor_oprate_left li{list-style:none; text-indent:20px;   border-bottom: 1px solid #CCCCCC;padding: 10px;}
.anchor_oprate_right{padding:10px;}
.anchor_oprate_right li{list-style:none;}
.anchor_oprate_right li.pad1{ padding:10px 50px;}
.resultTable{width:700px;}
</style>
<body class="ly121 pay">
	<? include('layer/topnav.html'); ?>
	<? include('layer/header.html'); ?>
    <div class="anchor_oprate_container">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="170" valign="top">
  <div class="anchor_oprate_left">
        	<li><a href="?action=AcountChange">兑换9点或奖励</a></li>
            <li><a href="?action=ExchangeHistory">兑换记录查询</a></li>
            <li><a href="?action=WorkHistory">麦时查询</a></li>
        </div>
    </td>
    <td valign="top">
    	<div class="anchor_oprate_right mpt a_exchange_history">
        <h1>直播明细：</h1>
        <form action="?action=WorkHistory" method="post" id="exchange_searchForm">
        <li class="pad1">选择日期 从<input type="text" id="from_data" name="from" value=""> 到<input type="text" name="to" id="to_data" value=""> <input type="button" id="change_search_btn" value="查询"></li>
        </form>
        <div id="resultSet">
  <table border="1" cellspacing="0" cellpadding="0" class="resultTable">
  <tr>
    <td align="center">房间号</td>
    <td align="center">主播昵称</td>
    <td align="center">时间</td>
    <td align="center">类型</td>
  </tr>
  <?php if($resultSet){ foreach($resultSet as $key=>$val){?>
  <tr>
    <td align="center"><?php echo $userinfo['usernum'];?></td>
    <td align="center"><?php echo $userinfo['nickname'];?></td>
    <td align="center"><?php echo Date('Y-m-d H:i:s',$val['time']);?></td>
    <td align="center"><?php if($val['type'] == 1){echo '开始直播';}else{echo '直播断开';}?></td>
  </tr>
  <?php }}?>
</table>
  <?php 
  	if($totalpage <= 1){
    	echo '共1页';
    }else{
    	for($i=1;$i<$totalpage;$i++){
        	echo '<a href="?action=ExchangeHistory&p='.$i.'">'.$i.'</a>';
        }
    }
  ?>
        </div>
        
        </div></td>
  </tr>
</table>
</div>
<? include('layer/footer.html'); ?>
<? include('layer/foot.html'); ?>
<script src="<?php echo STATIC_HTTP;?>jquery-ui/js/jquery-ui-1.10.0.custom.min.js"></script>
<link type="text/css" rel="stylesheet" href="<?= STATIC_HTTP ?>jquery-ui/css/redmond/jquery-ui-1.10.0.custom.min.css">
<? include('layer/jsstart.html'); ?>
